package com.itheima.search.service;

import com.hmall.common.dto.ItemDoc;
import com.hmall.common.dto.PageDTO;
import com.hmall.common.pojo.RequestParams;

import java.util.List;
import java.util.Map;

/**
 * @author ShiXTong
 * @since 2022/12/13 9:18
 */
public interface SearchService {

    List<String> listSuggestion(String prefix);

    PageDTO<ItemDoc> list(RequestParams requestParams);

    Map<String, List<String>> getFilters(RequestParams requestParams);

    void insertById(Long id);

    void deleteById(Long id);
}
